Block Group: | Math Operations |
Icon: |
![]() |
The Factorial block returns the single factorial of a number. The single factorial of n is equal to 1*2*3*…* n.
A negative input value causes 1 to be returned. If the input value is not an integer, it is truncated. The factorial of zero is one. Error values, and text that cannot be resolved to a number, cause 1 to be returned.
The following property of the Factorial block can take input and give output.
The following property of the Factorial block can give output but cannot take input.
The following image shows four examples of the Factorial block.